#ifndef STRLIB_H_
#define STRLIB_H_

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>

/**
 * Removes leading and trailing spaces from str
 * @param str the string to trim
 */
void trim(char* str, char* newstr);

/**
 * Replace char in strings
 * @param str the string
 * @param haystack the char to replace
 * @param needle the new char to set 
 */
void strreplace(char* str, char haystack, char needle);

/**
 * Checks if the string is a number
 * @param str the string to check
 * @return 1 if string is a number, 0 otherwise
 */
int isNumeric(char* str);


#endif /* STRLIB_H_ */


